jQuery(function($) {
	var mySwiper = new Swiper('.top', {
		slidesPerView: 2,
	});
//	var swiper = new Swiper('.swiper-container', {
//     
//  });
	var tabSwiper = new Swiper('.bottom', {
		 pagination: '.swiper-pagination',
     paginationClickable: true,
   
//      nextButton: '.swiper-button-next',
//      prevButton: '.swiper-button-prev',
//      autoHeight: true, //enable auto height
        
		speed: 500,
		
		onSlideChangeStart: function(tabSwiper) {
			var index = tabSwiper.activeIndex;
			$(".top .zx").removeClass('zx');
			$(".top a").eq(index).addClass('zx');
			mySwiper.slideTo(index);
			
		}
	});
	
	$(".top .swiper-slide").on('touchstart mousedown', function(e) {
		e.preventDefault();
		var $this = $(this);
		if(!$this.hasClass('zx')) {
			$(".top .zx").removeClass('zx');
			$(this).children('a').addClass('zx');
			tabSwiper.slideTo($(this).index());
			mySwiper.slideTo($(this).index());
		}
	});
	$('.ul1 li').click(function(){
		$('.zx').removeClass('zx');
		$(this).children('a').addClass('zx');
	});


var swiper1 = new Swiper('.mr', {

		slidesPerView: 2.3,
		paginationClickable: true,
		spaceBetween: 20,
		freeMode: true,
		effect:"fade",
		fadeEffect:{
			crossFade:false
		}
	});
	
	$(".left").click(function(){
		history.back();
	});

})